package edu.study.common.util;

import edu.study.api.common.json.JsonUtils;

public class Tuple <First,Second>{
	
    private First first;
    private Second second;

    public Tuple() {
    }
    public Tuple(First first, Second second) {
        this.first = first;
        this.second = second;
    }

    public First getFirst(){
        return first;
    }
    public Second getSecond(){
        return second;
    }
    public void set(First first,Second second){
        this.first = first;
        this.second = second;
    }
    
    public void setFirst(First first){
        this.first = first;
    }
    public void setSecond(Second second){
        this.second = second;
    }
    
    @Override
    public String toString() {
        return JsonUtils.toJson(this);
    }
}
